package beer.coder.walawala.gui.handler.item;

import beer.coder.walawala.common.config.ItemConfigure;
import beer.coder.walawala.common.constant.ItemType;
import java.util.function.BiConsumer;
import javafx.application.Application;

/**
 * TODO
 *
 * @author amath0312
 * @version 1.0
 * @date 2019-10-27 20:25
 */
@ItemAction(ItemType.OTHER)
public class OtherItemHandler implements BiConsumer<Application, ItemConfigure> {

  @Override
  public void accept(Application application, ItemConfigure itemConfigure) {
    application.getHostServices().showDocument(itemConfigure.getPath());
  }
}
